home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util2
/
wbinfo.rea
< prev
next >
Wrap
Text File
|
1996-01-16
|
2KB
|
41 lines
Short: Bring up WB info requester from CLI window
Author: bsimpson@mcs.dundee.ac.uk (Bruce M. Simpson)
Uploader: bsimpson@mcs.dundee.ac.uk (Bruce M. Simpson)
Type: util/wb
This is a simple proglet to bring up the Workbench Information requester
from the CLI. I wrote this because I fed up of getting away from the
CLI just to 'get info' on something - hence this tiny utility.
It requires V39 workbench.library (which generally means Workbench 3 or
above) and won't operate if Workbench isn't currently running - which is a
shame really... :(
It takes a single argument, and won't do any fancy stuff e.g. pattern
matching, multiple arguments, and opens the window on the default public
screen. I didn't really need these so I didn't put them in. But I may
well do the public screen thing sometime, if only to bring up a proper WB
info requester from a shell running on the DirOpus 4.x public screen.
Caveats:
Won't back out correctly if you try to obtain information on a non-
filesystem device, no memory lost, but funny lock behaviour. Doesn't seem
to harm the system though - but 'TurboList' generates spurious bad block
errors when run. I 'CD' back and it's fine - it seems to have CD'd to the
SYS: assignment, probably due to a NULL pr_CurrentDir.
This appears to be the only bug, apart from the fact that if you ask it to
obtain info on an object, and the argument ends in '/', it won't work - I'm
just using PathPart()/FilePart() and couldn't be bothered fixing it.
It's 100% pure and reentrant. Make it resident NOW... (684 bytes of code)
Enjoy,
__ ___ _
|__) _ _ (__ . ( _ | K is for Killer WWW Platform.
|__) |~ (_) (_ (- ___) | /\/\ P _) (_) |\| | L is for LightWave.
¯